* check all bag types only have one rule

#+begin_src shell
cat input | cut --delimiter ' ' --fields 1-2 | wc -l
cat input | cut --delimiter ' ' --fields 1-2 | uniq | wc -l
#+end_src

* count leaves in rule set

#+begin_src shell
cat input | grep 'no other bags' | wc -l
#+end_src
